export function roundPrice(price) {
  return (price / 100).toFixed(2)
}

/**
 * 移除协议头
 * @param url
 * @returns {string}
 */
export function removeHttpHeader(url) {
  if (url.indexOf('http://') === 0) {
    return url.substring(7)
  } else if (url.indexOf('https://') === 0) {
    return url.substring(8)
  } else {
    return url
  }
}
